package com.toe.pojo.dto.commodity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="CommodityGoodsSpecifications对象", description="")
public class CommodityGoodsSpecificationsDTO implements Serializable {


    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "商品对应规格的id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "商品对应的id")
    private Long goodsId;

    @ApiModelProperty(value = "商品拥有规格")
    private String specifications;

    @ApiModelProperty(value = "商品价格")
    private BigDecimal price;


    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.UPDATE)
    private Date updateTime;
}
